<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>数据填充的三个指令</title>
</head>
<body>
    <!-- v-text 填充数据文本 不存在闪动 -->
    <!-- v-html 能够识别html片段 -->
    <div id="box">
        <div>{{name}}</div>
        <div v-text="name"></div>
        <div v-html="msg"></div>
    </div>
    <script type="text/javascript" src="./js/vue.js"></script>
    <script>
    var xm  = new Vue({
        el: '#box',
        data: {
            name: '你好',
            msg: '<h1>HTML</h1>'
        }
    })
    
    </script>
</body>
</html>